package com.jml.netty.version5;

import io.netty.channel.ChannelHandlerAdapter;

class ClientHandler extends ChannelHandlerAdapter {

	/**
	 * 当通道被调用,执行该方法
	 */
	@Override
	public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
			throws Exception {
		// 接收数据
		String value = (String) msg;
		System.out.println("client msg:" + value);
	}
}
